projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45eaca1
)
Remove unused `ToUrl` impls.
author
Corey Farwell
<coreyf@rwell.org>
Thu, 5 May 2016 01:46:36 +0000
(21:46 -0400)
committer
Corey Farwell
<coreyf@rwell.org>
Thu, 5 May 2016 01:46:36 +0000
(21:46 -0400)
src/cargo/util/to_url.rs
patch
|
blob
|
history
diff --git
a/src/cargo/util/to_url.rs
b/src/cargo/util/to_url.rs
index 59159cc1d91fa05b650e642ffc2f953954097378..c8685708287dc616c8c182bf617587037dd5cdb6 100644
(file)
--- a/
src/cargo/util/to_url.rs
+++ b/
src/cargo/util/to_url.rs
@@
-5,18
+5,6
@@
pub trait ToUrl {
fn to_url(self) -> Result<Url, String>;
}
-impl ToUrl for Url {
- fn to_url(self) -> Result<Url, String> {
- Ok(self)
- }
-}
-
-impl<'a> ToUrl for &'a Url {
- fn to_url(self) -> Result<Url, String> {
- Ok(self.clone())
- }
-}
-
impl<'a> ToUrl for &'a str {
fn to_url(self) -> Result<Url, String> {
Url::parse(self).map_err(|s| {